package com.example.lastwork.dao;


import com.example.lastwork.common.dao.LogicDAO;
import com.example.lastwork.entity.ShopItem;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ShopItemDao extends LogicDAO<ShopItem, Long> {
    @Query("SELECT si FROM ShopItem si WHERE si.shop.id = :shopId")
    List<ShopItem> listShopItemByShopId(@Param(value = "shopId") Long shopId);
}






